﻿using BusinessLayer;
using QuiddichWPF.Config;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace QuiddichWPF
{
    /// <summary>
    /// Logique d'interaction pour Window1.xaml
    /// </summary>
    public partial class TeamWindow : Window
    {

        public TeamWindow()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Déclenché lors du clic sur la fenêtre principale afin de pouvoir la déplacer
        /// </summary>
        /// <param name="sender"> Sender object </param>
        /// <param name="e"> Arguments </param>
        private void Window_MouseDown(object sender, MouseButtonEventArgs e)
        {
            if (e.LeftButton == MouseButtonState.Pressed)
                this.DragMove();
        }

        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            Configuration.ConfigurationUtility.RegisterWindowConfig(Window.GetWindow(this));
        }

        private void Window_Initialized(object sender, EventArgs e)
        {
            Configuration.ConfigurationUtility.Configure(Window.GetWindow(this));
        }

    }
}
